#!/usr/bin/python3

f = open('/etc/passwd','r')
user = [i.split(":")[0] for i in f]
f.close()

username = input("plese input username:")
if username in user:
    print ("user %s exist" % username)
else:
    print ("user %s not exist" % username)
